*** Settings ***
Documentation       通过ipmi接口Bios读取设备的配置能力
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_Device_Configuration

*** Variables ***
${input}                    raw 0x30 0x92 0xdb 0x07 0x00 0x4e 0x07 0x07 0x00 0x00 0x01 0x02 0x05 0x09 0x0a 0x0d 0x0e
${expected_rc}              ${0}
${expected_output}          fe 0a 01 fe 0d 01 00 0e 01 fe


*** Test Cases ***
Get IPMI Device Configuration
    [Documentation]    带认证的IPMI的读取设备的配置能力
    [Tags]  Get_Device_Configuration_IPMI
    ${rc}    ${output}=  Run External Ipmi Command    ${input}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    Should Contain    ${output}    ${expected_output}


